This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add magic method abs
to NDArray and Symbol.
#15680
Merged
wkcn
merged 7 commits into
apache:master
from
kshitij12345:develop/ndarray/abs-magic-method
Aug 2, 2019
Merged
Add magic method abs
to NDArray and Symbol.
#15680
wkcn
merged 7 commits into
apache:master
from
kshitij12345:develop/ndarray/abs-magic-method
Aug 2, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wkcn
approved these changes
Jul 29, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you : )
Could you please add __abs__
for class Symbol
in python/mxnet/symbol/symbol.py too? Thx!
kshitij12345
force-pushed
the
develop/ndarray/abs-magic-method
branch
from
July 29, 2019 15:41
1316651
to
6e64ee9
Compare
@wkcn Have updated the code. Please review. |
@kshitij12345 Great! LGTM. Thanks for your contribution! |
@wkcn The update for 1 CI check shows that it is pending, however its details show that it has completed successfully. Should I retrigger the CI or is that okay? |
@kshitij12345 I have retriggered it : ) |
…to develop/ndarray/abs-magic-method
@mxnet-label-bot Add [pr-awaiting-merge, NDarray] |
marcoabreu
added
NDArray
pr-awaiting-merge
Review and CI is complete. Ready to Merge
labels
Jul 31, 2019
apeforest
approved these changes
Jul 31, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution
piyushghai
approved these changes
Jul 31, 2019
kshitij12345
changed the title
Add magic method
Add magic method Aug 1, 2019
abs
to NDArray.abs
to NDArray and Symbol.
anirudhacharya
pushed a commit
to anirudhacharya/mxnet
that referenced
this pull request
Aug 20, 2019
* add magic method abs to ndarray * add relevant tests * add magic method abs to symbol * add relevant tests * retrigger CI * retrigger CI
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This magic method was missing.
Allow the natural
abs(x)
.Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
abs
magic method.